package br.com.escapsystem.model.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class ConnectionFactory {

    public static Connection getConnection() {
        try {           
            Class.forName("org.postgresql.Driver");
            return DriverManager.getConnection("jdbc:postgresql://localhost:5432/escapsystem", "postgres", "admin");

        } catch (SQLException e) {
            throw new RuntimeException(e);
        }catch(ClassNotFoundException ex){
           throw new RuntimeException(ex);
        }


    }

    
       
    

  
}
